<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html;" charset="<?php echo CHARSET;?>">
<title>本地生活</title>
<link href="/mxd_web/Public/admin/css/skin_0.css" rel="stylesheet" type="text/css" id="cssfile"/>
<script type="text/javascript" src="/mxd_web/Public/static/jquery.js"></script>
<script type="text/javascript" src="/mxd_web/Public/static/jquery.validation.min.js"></script>
<script type="text/javascript" src="/mxd_web/Public/admin/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/mxd_web/Public/admin/js/admincp.js"></script>
<script type="text/javascript" src="/mxd_web/Public/admin/js/jquery.tooltip.js"></script>
<script language="javascript">
var SiteUrl = '<?php echo (C("SiteUrl")); ?>';
var AdminUrl = SiteUrl+'/<?php echo (MODULE_NAME); ?>';
</script>
</head><body>
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>微信回复</h3>
      <ul class="tab-base">
        <li><a href="JavaScript:void(0);" class="current"><span>信息管理</span></a></li>
        <li><a href="<?php echo U('Weixin/wx_msg_add');?>" ><span>添加</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>

  <form method='post' action="<?php echo U('Weixin/wx_msg');?>" id="form_weixin" name="form_weixin">
    <table class="table tb-type2">
      <thead>
        <tr class="thead">
          <th class="name">项目名称</th>
         <!-- <th class="w156">类型</th>  -->  
          <th class="align-center">关键词</th>  
          <!--<th class="align-center">状态</th>-->
          <th class="w72">操作 </th>
        </tr>
      </thead>
      <tbody>
         
         <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="hover edit">
          <td class="name"><?php echo ($vo["msg_title"]); ?></td>
<!--          <td class="w156">
              <?php if($vo['msg_type'] == 1): ?>文本
              <?php elseif($vo['msg_type'] == 2): ?>图片
              <?php elseif($vo['msg_type'] == 3): ?>语音
              <?php elseif($vo['msg_type'] == 4): ?>视频
              <?php elseif($vo['msg_type'] == 5): ?>音乐
              <?php elseif($vo['msg_type'] == 6): ?>图文
              <?php else: endif; ?>
          </td>-->
          <td class="align-center"><?php echo ($vo['msg_key']); ?></td>
<!--          <td class="align-center power-onoff">            
          <a href="JavaScript:void(0);" class="tooltip <?php if(($vo['show']) == "1"): ?>enabled<?php else: ?>disabled<?php endif; ?>" fieldvalue="<?php echo ($vo["show"]); ?>" fieldid="<?php echo ($vo["id"]); ?>" ajax_control="Weixin" ajax_branch="show" fieldname="show" nc_type="inline_edit" title="可编辑"><img src="/mxd_web/Public/admin/images/transparent.gif"></a>
         </td>-->
          <td class="w72">
          <a href="<?php echo U('Weixin/wx_msg_edit',array('id'=>$vo['id']));?>">编辑</a>
          <?php if(($vo['id'] != 1) AND ($vo['id'] != 2) AND ($vo['id'] != 6) AND ($vo['id'] != 9)): ?>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?php echo U('Weixin/wx_msg_del',array('id'=>$vo['id']));?>">移除</a><?php endif; ?>
          </td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
      </tbody>
      <tfoot>
        <tr class="tfoot">
          <td></td>
          <td colspan="16">
            <div class="pagination"> 
            <?php echo ($pages); ?>
            </div>
          </td>
        </tr>
      </tfoot>
      
    </table>
  </form>
</div>

<script>
//按钮先执行验证再提交表单
$(function(){
	$('#ncsubmit').click(function(){
		$('#formSearch').submit();
	});
	$('#delweixin').click(function(){
		$('#form_weixin').submit();
	});
});
</script>
</body></html>